<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
    <head>
        <meta name="layout" content="adminMain"/>
            <g:javascript library="prototype" />
            <gui:resources components="dataTable,autoComplete,datePicker"/>
        <title>Issue Voucher</title>
    </head>
    <body>
    <div id="contentText">
      <h2><span>Issue</span> Vouchers</h2>
    </div>
      <div id="wrap90">
        <h2>To all customers</h2>
  <div class="buttons" style="width:100px; padding-left:10px">
    <br>
          <g:link controller ="voucher" action="giftingAll" > Reward All Users </g:link><br><br>
    </div>
      </div>
      <br><br>
        <div id="wrap90">
          <div id="searchbox">
            
          
            <h2>For specific customer</h2> <br>
            <g:form action="search">
               <table>
                 <tbody>
                    <tr class="prop">
                       <td valign="top" class="name">Search for name:</td>
                       <td valign="top" class="value"><input name="name" type="text" value="${name}"/></td>
                    </tr>
                 </tbody>
              </table>
              <g:submitToRemote update="searchresults" value="Search" url="[controller:'voucher', action:'search']"
                   >
              </g:submitToRemote>
            </g:form>
          </div>          
         <g:render template="searchResults"/>
        </div>
    </body>
</html>